#ifndef GROUPITEMLIST_H_
#define GROUPITEMLIST_H_

#include "../../common/Constantes.h"
#include "ItemList.h"

#define DEFAULT_BUTTON_WIDTH 40
#define DEFAULT_BUTTON_HEIGHT 40
#define DEFAULT_PADDING 5

class GroupItemList: public ItemList {
public:
	GroupItemList(std::list< std::pair<std::string,std::string>* >* keyValueList, int posX, int posY, int width, int height, Widget* parent);
	virtual ~GroupItemList();

	void handleEvent(Event event);
	void resolve();
	void showOn(SDL_Surface* surface);
	std::string getSelected();
private:
	void fillButtonList();
	std::list< std::pair<std::string,std::string>* >* listKeyValue;
};

#endif /* GROUPITEMLIST_H_ */
